import { PrismaClient } from '@prisma/client';
import { hash } from 'argon2';

const prisma = new PrismaClient();

async function run() {
  await prisma.user.create({
    data: {
      userName: 'admin',
      passWord: await hash('admin888'),
      //头像
      avatar: 'uploads/1690959485037-2624999971.jpg',
      name: '云漫',
      //true代表女,false代表男
      gender: true,
      email: '2991519764@qq.com',
    },
  });
}

run();
